<template>
  <el-pagination
    layout="total, prev, pager, next"
    :total="total"
    :page-size="pageSize"
    background
    :hide-on-single-page="true"
    @current-change="handleCurrentChange"
  ></el-pagination>
</template>

<script>
export default {
  props: {
    total: Number,
    pageSize: {
      type: Number,
      default: 10,
    },
  },
  methods: {
    handleCurrentChange(value) {
      this.$emit('handleCurrentChange', value);
    },
  },
};
</script>

<style></style>
